# 基础镜像
FROM  openjdk:8-jre
# author
MAINTAINER edsta
# 设定时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 复制jar文件到路径
ARG JAR_FILE
COPY ${JAR_FILE} /
ARG CONFIG_FILE
COPY ${CONFIG_FILE} /
# 启动监控中心
ENTRYPOINT ["java",\
    "-Xmx500m",\
    "-Xms500m",\
    "-Xmn300m",\
    "-Xss1024k",\
    "-jar",\
    "-Djasypt.encryptor.password=edsta@ehotting&CEPREI",\
    "-Dspring.main.allow-circular-references=true",\
    "-Dspring.main.allow-bean-definition-overriding=true",\
    "/edsta-modules-gen.jar"]